﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows.Controls;
using System.Windows.Media.Imaging;

namespace Hi_Biadu.UI.PersonalObject
{
    /// <summary>
    ///     提供了IO相关标示操作的可视化树节点项
    /// </summary>
    public class IOTreeViewItem : TreeViewItem
    {
        private String _Ext;
        /// <summary>
        ///     文件后缀名
        /// </summary>
        public String Ext
        {
            get { return _Ext; }
            set { _Ext = value; }
        }

        private ObjectType _ObjType;
        /// <summary>
        ///     对象类型
        /// </summary>
        public ObjectType ObjType
        {
            get { return _ObjType; }
            set { _ObjType = value; }
        }

        private String _Path = "";
        /// <summary>
        ///     文件/目录 路径
        /// </summary>
        public String Path
        {
            get { return _Path; }
            set { _Path = value; }
        }
        private BitmapImage _OwnerImage = null;
        /// <summary>
        ///     文件图标
        /// </summary>
        public BitmapImage OwnerImage
        {
            get { return _OwnerImage; }
            set { _OwnerImage = value; }
        }

        /// <summary>
        ///     对象类型
        /// </summary>
        public enum ObjectType
        {
            FILE,
            DIRECTORY,
            DISK
        }
    }
}
